﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tema_inginerie
{
    class Client
    {
        protected AbstractMasina _abstractMasina;
        protected string numeUtilizator;
        protected int varsta;
        public Client(AbstractFactory factory,string tip,string nume,string numeUtilizator,int varsta)
        {
            _abstractMasina = factory.CreareMasina(tip,nume);
            this.numeUtilizator = numeUtilizator;
            this.varsta = varsta;
        }
        public void init()
        {
            _abstractMasina.Initializare();
          

        
          
        }
        public AbstractMasina get_car()
        { 
            return this._abstractMasina; 
        }
       
        
    }
}
